package com.spica.platform.base.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;
import java.util.Set;

/**
* 系统菜单实体
*/
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("sys_menu")
public class SysMenu extends BaseEntity<SysMenu> {
	private static final long serialVersionUID = 749360940290141180L;

	/** 菜单父类 */
	private Long parentId;
	/** 菜单名 */
	private String name;
	/** 菜单URL */
	private String url;
	/** 菜单路径 */
	private String path;
	/**
	 * 请求的类型
	 */
	private String pathMethod;
	/** 菜单样式 */
	private String css;
	/** 菜单排序 */
	private Integer sort;
	/** 菜单类型 */
	private Integer type;
	/** 是否隐藏 */
	private Boolean hidden;
	/** 租户字段 */
	private String tenantId;

	@TableField(exist = false)
	private List<SysMenu> subMenus;
	@TableField(exist = false)
	private Long roleId;
	@TableField(exist = false)
	private Set<Long> menuIds;
}
